package com.example.user.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {
    @GetMapping("/user/{userId}")
    public String getUserInfo(@PathVariable String userId) {
        return "用户信息：ID=" + userId + ", 姓名=张三";
    }
} 